﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //定义数组
        int[] arr = new int[] { 2, 26, 8, 1, 0, 9 };
        //使用Lambda表达式
        var result = arr.Where((int i) => (i % 2 == 0));
        //遍历查询结果
        foreach (var item in result)
        {
            Response.Write(item.ToString() + "<br/>");
        }

    }
}
